<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
<div class="page-heade clearfix">
    <h2 class="clearfix">
        <a href="{:url('cgindex')}" class="col-md-6 title_color H_right H_active"  style="display: inline-block;font-size: 16px">所有经销商核销状况查询-常规</a>
        <a href="{:url('index')}" class="col-md-6 title_color" style="color:#333;font-size: 16px;display: inline-block;">所有经销商核销状况查询-非常规和进场</a>
    </h2>
</div>
<!-- 标题 -->
<div>
    <form action="" class="form-inline">
        <table class="row-margin-top tab-content table-bordered table" border="1">
            <tr>
                <td class="text-right" style="min-width: 120px;width: 120px">
                    <label for="" class="form-label">经销商编号：</label>
                </td>
                <td><input type="text" class="form-control" name="jxsbh" value="{$jxsbh}"></td>
                <td class="text-right" style="min-width: 120px;width: 120px"><label for="">经销商名称：</label></td>
                <td><input type="text" class="form-control" name="jxsmc" value="{$jxsmc}"></td>
                <td class="text-right" style="min-width: 120px;width: 120px"><label for="">分区：</label></td>
                <td><input type="text" class="form-control" name="fq" value="{$fq}"></td>
                <td class="text-right" style="min-width: 120px;width: 120px"><label for="">省份：</label></td>
                <td><input type="text" class="form-control" name="sf" value="{$sf}"></td>
            </tr>
            <td class="text-right" style="min-width: 120px;width: 120px"><label for="">城市：</label></td>
            <td><input type="text" class="form-control" name="cs" value="{$cs}"></td>
            <td class="text-left" colspan="6">
                <button class="btn btn-info query">查询</button>
                <button class="btn btn-info emptyIf" type="button">清空查询条件</button>
            </td>
        </table>
    </form>

    <table class="table table-striped row-margin-top table-bordered table-hover text-center bud_hei">
        <tr class="info text-center">
            <th class="text-center" rowspan="2">序号</th>
            <th class="text-center" rowspan="2">经销商编号</th>
            <th class="text-center" rowspan="2">经销商名称</th>
            <th class="text-center" rowspan="2">分区</th>
            <th class="text-center" rowspan="2">省份</th>
            <th class="text-center" rowspan="2">城市</th>
            <th class="text-center" rowspan="2">已批准</th>
            <th class="text-center" rowspan="2">已核销</th>
            <th class="text-center" colspan="2">未核销</th>
            <th class="text-center" rowspan="2">不予核销</th>
            <th class="text-center" rowspan="2">对账单</th>
        </tr>
        <tr class="info">
            <th class="text-center">申请中</th>
            <th class="text-center">未申请</th>
        </tr>
        <tbody>
        {volist name="data" id="row" key="k"}
        <tr>
            <td>{$k+((request()->get('page')?request()->get('page'):1)-1)*10}</td>
            <td>{$row.sn}</td>
            <td>{$row.title}</td>
            <td>{$row.zoning}</td>
            <td>{$row.provice}</td>
            <td>{$row.city}</td>
            <td class="approved">{$row.ypz}</td>
            <td class="vorified">{$row.yhx}</td>
            <td class="applying">{$row.sqz}</td>
            <td class="noapply">{$row.wsq}</td>
            <td class="novorified">{$row.byhx}</td>
            <td><a href="{:url('duizhangdancg',['id'=>$row.id])}" class="J_menuItem">查看</a></td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <h5 class="text-center">
        {$page}
    </h5>

</div>
<!-- 全局js -->
{include file="Public/footer"}
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/layout/js/common.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    $(document).ready(function () {
        $('.emptyIf').on('click',function () {
            var form = $(this).closest('form')
            form.find('input[type=text]').each(function (i,o) {
                $(o).val('')
            })
            form.submit()
        })

        var $approved = $(".approved");
        var $vorified = $(".vorified");
        var $applying = $(".applying");
        var $noapply = $(".noapply");
        var $novorified = $(".novorified");
        var $approvedAhref = "approvedPage.html";
        var $vorifiedAhref = "vorifiedPage.html";
        var $applyingAhref = "applyingPage.html";
        var $novorifiedAhref = "novorifiedPage.html";
        toNumA($approved, $approvedAhref);
        toNumA($vorified, $vorifiedAhref);
        toNumA($applying, $applyingAhref);
        toNumA($novorified, $novorifiedAhref);
        toNum($noapply);
        toNum($novorified);
    })
</script>
</body>

</html>
